package com.xjrsoft.module.workflow.dto;

import com.xjrsoft.common.page.PageInput;
import com.xjrsoft.core.tool.utils.StringPool;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

@Data
@ToString
@ApiModel(value = "NwfSchemeInfoDto", description = "流程任务分页入参")
public class GetPageListNwfTaskDto extends PageInput {


    @ApiModelProperty(value = "专项菜单ID")
    private String nwfRelationId;

    @ApiModelProperty(value = "专项菜单ID")
    private String nwfSchemeInfoId;

    @ApiModelProperty(value = "流程设计分类")
    private String category;

    @ApiModelProperty(value = "是否手机查询")
    private String fIsInapp;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "流程实例ID")
    private String processInstanceId;

    @ApiModelProperty(value = "关联任务信息")
    private String relevanceTask;

    @ApiModelProperty(value = "是否在我的流程中启动标记")
    private String mark;

    @ApiModelProperty(value = "关键词")
    private String keyword;

    @ApiModelProperty(value = "流水号")
    private String serialNumber;

    @ApiModelProperty(value = "自定义查询")
    private String queryParameter;

    public String getKeyword() {
        if (StringUtils.isNotBlank(keyword)) {
            return StringPool.PERCENT + keyword + StringPool.PERCENT;
        }
        return keyword;
    }
}
